home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Original Shareware 1.1
/
The Original Shareware (WeMake CDs)(Volume 1.1)(CDs, Inc)(1993).iso
/
16
/
fpc225_3.zip
/
F-PCHELP.ZIP
/
CASE.HLP
< prev
next >
Wrap
Text File
|
1987-12-24
|
1KB
|
35 lines
\ CASE.HLP Case statment by Bob Smith
CASE ( -- )
Start a CASE statment, as follows:
CASE value1
value2 OF func2 ENDOF
value3 OF func3 ENDOF otherwise func DROP
ENDCASE
Allows an arbitrary value to specify a function be performed.
If your values are sequential, the EXEC: word is much faster,
and more space efficient. See also EXEC:
ENDOF ( -- )
See CASE.
OF ( n1 n2 -- n1 ) ( n1 n1 -- )
See CASE.
ENDCASE ( -- )
See CASE.
NRESOLVE ( 0 n1 n2 ... n -- )
Primitive used by ENDCASE to resolve the previous case
references.
(OF) ( n1 n2 -- n1 ) ( or ) ( n1 n1 -- )
Primitive case comparison word, compiled by OF. Performs
a comparison between n1 and n2.